<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
		var a=1;
		 var b;
		fn(b);
		alert(a);
		var a;
		alert(a);
		var a=30;
		alert(a);
		//window.onload=fn(a);
		function fn(b){
			var a=20;
			alert(a);
			alert(b);
		}
</script>
</head>
<body>
<h1>test4</h1>
<form action="">
	<table>
		<tr>
				<td>图片上传：</td>
				<td>
					<img id="imgUrl" width="200" height="200" src="${exam.examImageUrl}">
	   				<div>
	   					<input type="file" id="file"name="file" onchange="return ajaxFileUploadImg(this,'file');" style="display:none"/>  
						<input type="text" name="examImageUrl" id="examImageUrl" value="${exam.examImageUrl}" /> <br/>
						<input name="button" type="button" onclick="upload();" value="上传图片" />
						<input type="hidden" id="adminPath" value="${ctx}" />
	   				</div>
	   			</td>
			</tr>
	</table>
</form>
</body>
</html>